package com.ld.security.server.admin.modules.ge.vo;

import com.ld.security.common.core.base.SuperVo;
import com.ld.security.common.mybatis.anno.QueryKey;
import com.ld.security.common.mybatis.anno.RemoveKey;
import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.server.admin.modules.ge.entity.GeModelEntity;
import com.ld.security.server.admin.modules.ge.entity.GeViewEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("视图详情")
public class SaveViewDetailVo implements SuperVo {

    private String id;


    @ApiModelProperty("视图")
    @QueryKey
    @RemoveKey
    @SqlKey(name = "id",valueField = "id")
    private GeViewEntity view;


    @RemoveKey
    @ApiModelProperty("模型")
    @QueryKey
    @SqlKey(name = "viewId",valueField = "view.id")
    private List<GeModelEntity> models;

}
